{include file="Index/header" /}
 
	<div class="formbody">
	<div class="formtitle"><span>用户组管理</span></div>
		<div id="usual1" class="usual">
			<div id="tab2" class="tabson">
				<div id="ajax_dom">
						<table class="tablelist" >
							<thead>
								<tr>
									<th>编号</th> 
									<th>用户名</th>
									<th>用户权限</th>
									<th>最近访问时间</th>
									<th>操作</th>
								</tr>
							</thead>
							<tbody id="tab_body">
							{if $listArr}
								{volist name="$listArr" id="v" key="k"}
									<tr id="tr_{$v.id}">
									<td>{$v.id}</td>
									<td>{$v.names}</td>
									<td>{$v.roles}</td>
									<td>{:date("Y-m-d",$v[on_time])}</td>
									<td>
										<a href="{:url('Group/groupAdd', array('groupId'=>$v[id]))}" class="tablelink">编辑</a>
										<a href="javascript:void(0);" class="tablelink" onclick="del({$v.id});">删除</a></td>
								</tr>
								{/volist}
							{else /}
								<tr>
									<td colspan="5" style="text-align:center;">没有符合当前查找条件的值！</td>
								</tr>
							{/if}
							</tbody>
						</table>
						<div class="page">
							{$pages}
						</div>
				</div>
			</div>
		</div>
	</div>


	<script>
	/* 删除用户信息 */
	function del(obj_id){
		$.post("{:url('Group/delete')}",{
			'group_id':obj_id
		},function (json){
			if(json.status == "1"){
				$("#tr_"+obj_id).remove();
			}else{
				alert("删除失败");
			}
		},'json');
	}
	
	
	
	
	</script>
{include file="Index/footer" /}
